class EmailerController < ApplicationController
   def sendmail
      recipient = params[:email][:recipient]
      subject = params[:email][:subject]
      message = params[:email][:message]
      Emailer.deliver_contact(recipient, subject, message)
      return if request.xhr?
      render :text => 'Message sent successfully'
   end

      def index
     
   end

end
